<!DOCTYPE html>
<html lang="en">
{include file='Public:head'}
<body data-type="widgets">
<script src="/assets/js/theme.js"></script>
<style>
</style>
<div class="am-g tpl-g">
    {include file='Public:header'}
    {include file='Public:menu2'}
    <!-- 内容区域 -->
    <div class="tpl-content-wrapper">
        <div class="row-content am-cf">
            <div class="row">
                <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                    <div class="widget am-cf">
                        <div class="widget-head am-cf">
                            <div class="widget-title  am-cf">添加商品规格</div>
                            <!-- /.box-header -->
                            <form action="{:Url('/Specification/SpecificationAdd')}" method="post"class="am-form am-form-horizontal" id="category_form"  >
                                <div class="am-form-group"  >
                                    <label  class="am-u-sm-4 am-form-label">规格名称</label>
                                    <div class="am-u-sm-8" >
                                        <input type="text" id="name" name="spec_name"  style="width:500px;" value="">
                                    </div>
                                </div>
                                <div class="am-form-group am-form-select">
                                    <label class="am-u-sm-4 am-form-label">所选商品类型</label>
                                    <div class="am-u-sm-8">
                                        <select name="type_id" class="" style="width:200px;" onchange=""  value="">
                                            <option value="">请选择</option>
                                            {foreach $select as $k=>$v}
                                            <option value="{$v.id}" >{$v.name}</option>
                                            {/foreach}
                                        </select>
                                    </div>
                                </div>
                                <div class="am-form-group"  >
                                    <label  class="am-u-sm-4 am-form-label">规格项</label>
                                    <div class="am-u-sm-8" >
                                        <textarea rows="5" cols="30" name="item" style="width:300px;"></textarea>
                                        一行为一规格项
                                    </div>
                                </div>
                                <div class="am-form-group"  >
                                    <label  class="am-u-sm-4 am-form-label">排序</label>
                                    <div class="am-u-sm-8" >
                                        <input type="hidden" id="order" name="order" placeholder="排序" style="width:100px;" value="">
                                    </div>
                                </div>

                                <div class="box-footer">
                                    <a href="javascript:history.go(-1)" data-toggle="tooltip" title="" class="btn btn-default" data-original-title="返回"><i class="fa fa-reply"></i></a>

                                    <button type="button" onclick="ajax_submit_form('category_form','{:Url('/Admin/Specification/SpecificationAdd')}');" class="am-btn am-btn-secondary" style="float: right"><i class="icon-ok"></i>提交</button>
                                </div>
                            </form>
                        </div>

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="/layer/layer.js"></script>
<script src="/js/myFormValidation.js"></script>
<script src="/js/myAjax.js"></script>
<script src="http://cdn.bootcss.com/amazeui/2.7.2/js/amazeui.min.js"></script>
<script src="/assets/js/amazeui.datatables.min.js"></script>
<script src="/assets/js/dataTables.responsive.min.js"></script>
<!--<script src="/assets/js/app.js"></script>-->
</body>
</html>